import QtQuick 2.7
import QtQuick.Controls 2.0

ApplicationWindow {
    visible: true
    width: 640
    height: 400
    title: qsTr("xdock")

    SwipeView {
        id: swipeView
        anchors.fill: parent
        currentIndex: tabBar.currentIndex

        Page1 {
        }

        Page2Form {
        }

        Page3 {
        }
    }
    PageIndicator {
        id: indicator
        x: swipeView.width / 2  - indicator.width / 2
        y: swipeView.height - indicator.height
        count: swipeView.count
        currentIndex: swipeView.currentIndex
    }

    header: TabBar {
        id: tabBar
        currentIndex: swipeView.currentIndex

        TabButton {
            text: qsTr("Page 1")
        }
        TabButton {
            text: qsTr("Page 2")
        }
        TabButton {
            text: qsTr("Page 3")
        }
    }
}
